Liverpool have been drawn against Hearts, while Newcastle United will face Greek side Atromitos in the Europa League play-off round.