Environmental influence on primary sex ratio in a dioecious plant