Adobe turns in a fourth-quarter profit as revenues beat forecasts