Structure and physical properties of the bipolar outflow source NGC 7023