Computer-based rating of problem difficulty in chess