Electromyogram recording of the diaphragm: modeling, simulation, and experimental comparison