numpy multiply arrays of different dimensions