Correct-by-Construction Design of Contextual Robotic Missions Using Contracts