(Español) Stellar populations of galaxies in the ALHAMBRA survey up to z~1. I. MUFFIT: A multi-filter fitting code for stellar population diagnostics