Electronic entanglement in the vicinity of a superconductor