Critical current in YNi2B2C and HoNi2B2C thin films