Obama sworn in to second term as president