Direct adjustment procedure for weight functions of graded materials