Miners pledge to eliminate sex harassment