Ownership structure, internal financing and investment dynamics