Are the W Ursae majoris-type systems EK comae berenices and UX Eridani surrounded by circumstellar matter?