Synthesis of porosity controllable nanoporous silicon with a self-coated nickel layer for lithium-ion batteries