An extended photometric stereo algorithm for recovering specular object shape and its reflectance properties