Gravar-mail: A folding algorithm for extended RNA secondary structures