On-chip density-based purification of liposomes