Highly Efficient Gradient Computation for Density-Constrained Analytical Placement