Influence of the chameleon field potential on transition frequencies of gravitationally bound quantum states of ultracold neutrons