Pat McCrory sworn in as North Carolina governor