Fine and hyperfine structure in esr spectroscopy