Perovskite type nanopowders and thin films obtained by chemical methods