I finally figured out an effective way of cutting foam to fit my miniatures. This involved putting together a couple of custom tools. I have described the method in detail here.
Now to find the time and effort to actually put it into practice for all my minis. This could take a while.