Defect-induced charge-order melting in thin films of Pr0.5Ca0.5MnO3