Relational information theory