Conductivity and switching phenomena in Mn-doped perovskite single crystals and manganite thin films