Scanning tunneling microscopy studies of charge density waves in bulk and exfoliated transition metal dichalcogenides