Rail-mounted howitzer