New method for determining grain boundary parameters