Optically detected magnetic resonance study of the transition from pseudodirect type-II to type-I GaAs/AlAs superlattices