Critical magnetic fields of superconducting thin films of ErRh4B4