Designing effective frequency response patterns for flexible thermostatic loads