Failure mechanisms in ceramic capacitors