Tuning the strength of the resonance-assisted hydrogen bond in acenes and phenacenes with two o-hydroxyaldehyde groups: the importance of topology