Crystal structure, dimensionality, and 4d electron distribution in K0.30MoO3 and Rb0.30MoO3