Nebular Spectroscopy: A Guide on H ii Regions and Planetary Nebulae