New Costa Rica president takes office