Structure, elasticity, thermodynamics and high pressure behavior of ZnB4O7 and CdB4O7