Critical factors affecting the photovoltaic characteristic and comparative study between two maximum power point tracking algorithms