X-ray diffuse scattering and magnetic resonance: a study of structural phase transitions in perylene radical cation salts