Measurement of D0, D+, D*+ and D s+ production in Pb-Pb collisions at √sNN=5.02 TeV