Extended motifs from water and chemical functional groups in organic molecular crystals