the ipsw files aren't what's difficult to find... a quick google will get you pretty much any file you want.
The problem is you need SHSH blobs saved for those devices on those firmwares in order to install that firmware version.
Apple doesn't sign old firmware versions anymore, so the only way to get those firmwares on device is to have the SHSH saved and "trick" iTunes into accepting them and not looking to apple's servers to get the firmware signed.
Basically, if you don't already know this, it's too late and you are screwed. You will never get those back to their original firmwares at this point.