Calculation of hysteresis losses in hard superconductors carrying ac: isolated conductors and edges of thin sheets | Synapse