Nanoparticles and biomembranes as models for aggregation in the biological environment