Up, down, strange and charm quark masses with Nf=2+1+1 twisted mass lattice QCD