Influence of Mg2+ on the conformational flexibility of a tetracycline aptamer