Certification and quantification of the entanglement stored in a quantum memory using incomplete data