Swelling of ionic and neutral polymer networks in ionic solutions