Fundamentals of microdosimetry