Optimal marketing strategies in a duopoly through a micro-level framework