Two-dimensional metalloporphyrin monolayers with intriguing electronic and spintronic properties