Pneumatic solenoid valve for a single acting cylinder