Switching effect perpendicular to the plane of Pr0.5Ca0.5MnO3−y thin films