Realization of quantum nanomagnets in metal-free porphyrins