Numerical simulation of droplet formation in a microfluidic T-junction using a dynamic contact angle model