A rate-equation model for the growth of metallic thin films in ion beam assisted deposition