Lenovo swings to forecast-beating first-quarter profit