Optical and NIR observations of the nearby type Ia supernova SN 2014J