Method and apparatus for sterilizing or disinfecting of Objects