Musharraf sworn in as Pakistan president