Magnetic and Electric Transverse Spin Density of Spatially Confined Light