Hybrid approach to obtain high-quality BaMO perovskite nanocrystals