who wrote if i were a boy reba or beyonce