Towards a rational design of solid drug nanoparticles with optimised pharmacological properties