A visionary, his films included “Eraserhead,” “Blue Velvet” and “Mulholland Drive,” which was considered his masterwork.