Semi-device-independent certification of entanglement in superdense coding