The structure of singularities in soap-bubble-like and soap-film-like minimal surfaces