Effect of environment on fracture of ceramics