The effects of taxation, price control and government contracts in oligopoly and monopolistic competition