Degree of chirality of electromagnetic fields and maximally chiral light