Mechanical properties of porous ceramics in compression: On the transition between elastic, brittle, and cellular behavior