The Munich Near-Infrared Cluster Survey ( MUNICS ) – II . The K-band luminosity function of field galaxies to z ∼ 1 . 2