Mean field superconductivity approach in two dimensions: Hydrogen in Graphite