Implications of different stellar spectra for the climate of tidally locked Earth-like exoplanets