Essays in Competition and Investment in Electricity Market