Discovering intermediate massive black holes through tidally disrupted stars