A novel technique for synthesizing MgB2 thin films with high upper critical fields