Perturbative treatment of anharmonic diatomic oscillators in the generator coordinate description