Degree sequence conditions for maximally edge-connected graphs and digraphs