Developer outbids Cook’s Lobster owner to buy historic Maine island wharf