Method of filling a well in a substrate