Molecular recognition: hydrogen bonding and stacking interactions stabilize a model for nucleic acid structure