diatonic scale formula