Spectrophotometric studies of nebulae. 21. The remarkable planetary nebula NGC 6778.