Adaptation of the optimal fingerprint method for climate change