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