Microscale Model for Intergranular and Transgranular Damage and Fracture in Polycrystalline Ceramics