On the evolution and environmental dependence of the star formation rate versus stellar mass relation since z ∼ 2