Artificial reversible and programmable magnetic pinning for high-Tc superconducting thin films