Fundamentals of diffusion-based molecular communication in nanonetworks