Acoustic emission from superconducting magnets: the difference between layer wound coils and pancake wound coils