Reconstructing exact scalar--tensor cosmologies via conformal transformations