Rigid polymer foam