Relation algebras as residuated Boolean algebras