Calculation of proton affinities and absolute gas-phase basicities of X3 group VI triatomics. A density functional study