Predicting the Performance of Black-box LLMs through Self-Queries