Crystal field parameters and phase transitions in ErSb