The response of a turbulent boundary layer to abrupt changes in surface conditions