K-epiderivatives for set-valued functions and optimization,