Search for new high-mass phenomena in the dilepton final state using 36 fb−1 of proton-proton collision data at s = 13 $$ sqrts=13 $$ TeV with the ATLAS detector