Guide to optical spectroscopy of layered semiconductors