FRT presentation of the Onsager algebras