Libya is struggling to cope with the bodies of would-be migrants washing up on its shores after their attempts to reach Europe ended in the Mediterranean.