Model-Based Maximum Power Point Tracking Algorithm With Constant Power Generation Capability and Fast DC-Link Dynamics for Two-Stage PV Systems