Competition between α-decay and proton radioactivity within a generalized liquid drop model