Three essays on the consequences of foreign competition on corporate policies and financial markets quality