Competition between α decay and proton radioactivity of neutron-deficient nuclei