Quantum confinement dependence of the energy splitting and recombination dynamics of A and B excitons in a GaN/AlGaN quantum well