Search for contact interactions and large extra dimensions in the dilepton mass spectra from proton-proton collisions at \( \sqrt{s}=13 \) TeV