Selecting RNA aptamers for synthetic biology: investigating magnesium dependence and predicting binding affinity