Simple procedure to compute accurate energy levels of an anharmonic oscillator