Free-Energy Simulations of Hydrogen Bonding versus Stacking of Nucleobases on a Graphene Surface