Developers have been given permission to demolish a Bournemouth hotel that has been described as a “eyesore” in the area.