Obama shifts to campaign mode, tears into Romney