How to create a new array of objects based on the values of two existing arrays