A first-principles study on the structural, elastic, vibrational, and thermodynamical properties of BaX (X=S, Se, and Te)